﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Helo
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.ReadKey();
            TaiLa tl = new TaiLa("泰拉确实拉", "泰拉", 80, 70, 45);
            tl.GetMsg();
            tl.FirstSkill();
            tl.SecondSkill();
            tl.ThirdSkill();

            Console.ReadKey();

            Lucas lucas = new Lucas("idtwtbha", "卢卡斯", 85, 50, 40);
            lucas.GetMsg();
            lucas.FirstSkill();
            lucas.SecondSkill();
            lucas.ThirdSkill();

            Console.ReadKey();

            LuoFei luofei = new LuoFei("....", "洛飞", 70, 30, 80);
            luofei.GetMsg();
            luofei.FirstSkill();
            luofei.SecondSkill();
            luofei.ThirdSkill();

            Console.ReadKey();
        }
    }
    class Hero
    {
        private string _nikeName;
        private string _name;
        private string _heroInfo;
        private int _attack;
        private int _defense;
        private int _speed;



        public string NikeName
        {
            get
            {
                return this._nikeName;
            }
            set
            {
                this._nikeName = value;
            }
        }

        public string Name { get => _name; set => _name = value; }
        public string HeroInfo { get => _heroInfo; set => _heroInfo = value; }
        public int Attack { get => _attack; set => _attack = value; }
        public int Defense { get => _defense; set => _defense = value; }
        public int Speed { get => _speed; set => _speed = value; }

        public Hero(string nikeName, string Name, int attack, int deferse, int speed)
        {
            this.NikeName = nikeName;
            this.Name = Name;
            this.Attack = attack;
            this.Defense = Defense;
            this.Speed = speed;
        }
    }
    class Lucas : Hero
    {
        public Lucas(string nickname, string name, int attack, int defense, int speed)
    : base(nickname, name, attack, defense, speed)
        {
            base.HeroInfo = "是一名为彬彬有礼的剑客";
        }

        public void FirstSkill()
        {
            Console.WriteLine("技能一：减速陷阱");
        }
        public void SecondSkill()
        {
            Console.WriteLine("技能二：能量浪潮");
        }
        public void ThirdSkill()
        {
            Console.WriteLine("技能三：旋风剑舞");
        }
        public void GetMsg()
        {
            Console.WriteLine("我是{0}，{1}，\n 攻击力：{2}， \n 防御力：{3}，\n 速度：{4} ，\n 用户名：{5}", base.Name, base.HeroInfo, base.Attack, base.Defense, base.Speed, base.NikeName);
        }
    }
    class LuoFei : Hero
    {
        public LuoFei(string nickname, string name, int attack, int defense, int speed)
            : base(nickname, name, attack, defense, speed)
        {
            base.HeroInfo = "是一名攻击迅猛的法师";
        }
        public void FirstSkill()
        {
            Console.WriteLine("技能一：能量精灵");
        }
        public void SecondSkill()
        {
            Console.WriteLine("技能二：暗影传送");
        }
        public void ThirdSkill()
        {
            Console.WriteLine("技能三：空间迸裂");
        }
        public void GetMsg()
        {
            Console.WriteLine("我是{0}，{1}，\n 攻击力：{2}， \n 防御力：{3}，\n 速度：{4} ，\n 用户名：{5}", base.Name, base.HeroInfo, base.Attack, base.Defense, base.Speed, base.NikeName);
        }
    }
    class TaiLa : Hero
    {
        public TaiLa(string nickname, string name, int attack, int defense, int speed)
            : base(nickname, name, attack, defense, speed)
        {
            base.HeroInfo = "是一名为复仇而来的勇者";
        }

        public void FirstSkill()
        {
            Console.WriteLine("技能一：巨浪冲击");
        }
        public void SecondSkill()
        {
            Console.WriteLine("技能二：元素突击");
        }
        public void ThirdSkill()
        {
            Console.WriteLine("技能三：复仇杀戮");
        }
        public void GetMsg()
        {
            Console.WriteLine("我是{0}，{1}，\n 攻击力：{2}， \n 防御力：{3}，\n 速度：{4} ，\n 用户名：{5}", base.Name, base.HeroInfo, base.Attack, base.Defense, base.Speed, base.NikeName);
        }
    }

}


